package o;

import android.content.SharedPreferences;

class boi {
    private static int ˋ = ((int) ((System.currentTimeMillis() << 16) & 2147418112));
    private static final Object ˎ = new Object();
    private static int ˏ = ˋ();
    private static SharedPreferences ॱ = ContentManager.getInstant().getContext().getSharedPreferences("com.huawei.appgallery.dynamiccore.idgen", 0);

    boi() {
    }

    static {
        synchronized (ˎ) {
        }
    }

    static int ˏ() {
        int i;
        synchronized (ˎ) {
            ˏ = (ˏ + 1) & 65535;
            ˎ(ˏ);
            i = ˋ + ˏ;
        }
        return i;
    }

    private static int ˋ() {
        int i = 0;
        try {
            i = ॱ.getInt("int.Low16", 0);
        } catch (ClassCastException e) {
        }
        return i;
    }

    private static void ˎ(int i) {
        ॱ.edit().putInt("int.Low16", i).apply();
    }
}
